﻿#ifndef SERVERNOTICE_H
#define SERVERNOTICE_H

#include <QWidget>
#include <QHostAddress>
#include <QTcpServer>
#include <QTcpSocket>
#include <QVector>
namespace Ui {
class ServerNotice;
}

class ServerNotice : public QWidget
{
    Q_OBJECT

public:
    explicit ServerNotice(QWidget *parent = nullptr);
    ~ServerNotice();
private slots:
    void read_data();
    void new_client();
    void on_sendBt_clicked();

    void on_cleartBt_clicked();

private:
    Ui::ServerNotice *ui;
    QVector<QTcpSocket*> clients;
    QTcpServer mserver;

};

#endif // SERVERNOTICE_H
